﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace Example3_ws3_level.Controller
{
    class MasterController
    {
        Model.Model m_model;
        View.View m_view;

        public MasterController(GraphicsDeviceManager a_manager, ContentManager a_contentManager)
        {
            m_model = new Model.Model();
            m_view = new View.View(a_manager, a_contentManager);
        }

        internal void Draw(float a_elapsedTime, Microsoft.Xna.Framework.Graphics.GraphicsDevice GraphicsDevice)
        {

            //get the playerposition for the view
            Model.Level level = m_model.GetLevel();

            //draw background and player 
            m_view.DrawLevel(GraphicsDevice, level);
            
        }


    }
}
